package com.cby.android.sample.bean.wan

import com.google.gson.annotations.SerializedName

data class WanApiResponse<T>(
    @SerializedName("data")
    var data: T,
    @SerializedName("errorCode")
    var errorCode: Int,
    @SerializedName("errorMsg")
    var errorMsg: String
) {
    fun isSuccess() = errorCode == 0
}